package com.example.birdfriends.service;

import com.example.birdfriends.pojo.user.User;
import com.example.birdfriends.pojo.user.UserForm;

import javax.jws.soap.SOAPBinding;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface UserService {
    public Map<String, Object> verifyRegister(UserForm userDto, HttpSession session);
    public boolean isExist(UserForm userForm);
    public int insertUser(User user);
    public User findUserByEmailAndPassword(String email, String password);
    public int logoff(Long id);
    public int updateUser(User user);
    public int updatePassword(String newPwd, String email);
    public Map<String, Object> verifyLogin(UserForm userForm, HttpSession session);
    public User findUserByEmail(String email);
    public List<Long> findAllUserIds();
    public User findUserByUid(Long uid);
    public List<User> findUsersByName(String name);
    public Long countUserNumber();
    public List<Long> findUserIdsOrderById();
}
